package com.cloudalibabaconsumer8084.Service.impl;

import com.cloudalibabacomment8001.entity.JsonResult;
import com.cloudalibabaconsumer8084.Service.FeignService;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2024/11/27 20:09
 * @Version 1.0
 */
@Component
public class FeignServiceImpl implements FeignService {


    // 当远程调用失败或者超时时的容错处理逻辑
    @Override
    public JsonResult<String> msbSql(Long id) {
        return new JsonResult<String>(444, "服务降级返回，---PaymentFallbackService");
    }
}
